package edu.arizona.sista.learn.model.interest;

import edu.arizona.sista.learn.model.Interval;
import edu.arizona.sista.learn.model.displaying.Event;
import edu.arizona.sista.learn.model.holding.Person;

public class WalkingBackwards extends Event{
	public Person _doer;
	
	public WalkingBackwards(Interval time) {
		super(time);
	}
	
	public WalkingBackwards(Interval time, Person doer){
		this(time);
		_doer = doer;
	}
	
	@Override
	public String toString() {
		String t = "t_"  + _time.start() + "-" + _time.end();
		String s1 = "isa(" + t + ", TimeInterval)\n";
		String s2 = "isa(" + getVariableName() + ", WalkingBackwards)\n";
		String s3 = "performedBy(" + getVariableName() + ", " + _doer.getVariableName() + ")\n";  
		String s4 = "temporalExtent(" + getVariableName() + ", " + t + ")\n";  
		return s1 + s2 + s3 + s4;
	}

}
